package studio.raptor.databus.command;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * 某业务中心的订阅、发布事件模型
 * Created  on 2017/6/23.
 */
public class BizPubSubEventInfo {
    private Map<String/*eventName_eventKindId*/,Integer/*brokerGroupId*/> pub = new HashMap<String,Integer>();
    private Map<String/*eventName_eventKindId*/,Integer/*brokerGroupId*/> sub = new HashMap<String,Integer>();


    public Map<String, Integer> getPub() {
        return pub;
    }

    /**
     * 设置当前业务中心的发布主题信息
     * @param pub 发布事件信息。Key-value：eventName_eventKindId,brokerGroupId
     */
    public void setPub(Map<String/*eventName_eventKindId*/,Integer/*eventName*/> pub) {
        this.pub = pub;
    }

    public Map<String, Integer> getSub() {
        return sub;
    }

    /**
     * 设置当前业务中心订阅的事件信息。Key-value：eventName_eventKindId,brokerGroupId
     * @param sub
     */
    public void setSub(Map<String/*eventName_eventKindId*/,Integer/*eventName*/> sub) {
        this.sub = sub;
    }
}
